import Layout from './Layout'
import Wrapper from './Wrapper'
import Heading from './Heading'
import InputMoney from './InputMoney'
import Img from './Img'
import Avatar from './Avatar'
import ImgMatch from './ImgMatch'
import {Cellbox, CellItem} from './cellbox'
import Preview from './Preview'
import PreviewBox from './PreviewBox'
import Placeholder from './Placeholder'
import Text from './Text'

const components = [
  Layout,
  Wrapper,
  Heading,
  InputMoney,
  Img,
  Avatar,
  ImgMatch,
  Cellbox,
  CellItem,
  Preview,
  PreviewBox,
  Placeholder,
  Text
]

const install = function (Vue, opts = {}) {
  for (let item of components) {
    item && item.componentName && Vue.component(item.componentName, item)
  }
}

export {
  install,
  Layout,
  Wrapper,
  Heading,
  InputMoney,
  Img,
  Avatar,
  ImgMatch,
  Cellbox,
  CellItem,
  Preview,
  PreviewBox,
  Placeholder,
  Text
}
